package controllers;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.util.List;
import java.util.Random;

import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.io.xml.DomDriver;

import play.mvc.Controller;
import vos.ResponseInfo;


public class TestController extends Controller {
	
	public static void rebion(){
		render();
	}
	public static void myOne(){
		render();
	}
	public static void getText(){
		String xml="<?xml version=\"1.0\" encoding=\"utf-8\"?>"+
		"<ResponseInfo>"+
		   "<ResCode>Success</ResCode>"+
		   "<ResMessage>Success</ResMessage>"+
		   "<ErrorNo>0</ErrorNo>"+
		   "<Identify>33803e76-a2d2-4058-9d55-71be2c527dbe</Identify>"+
		"</ResponseInfo>";
		XStream xstream=new XStream(new DomDriver());
		xstream.processAnnotations(ResponseInfo.class);
		ResponseInfo info=(ResponseInfo) xstream.fromXML(xml);
		System.out.println(info.getIdentify());
	}
	
	
}
